package Person_JavaBean;
import net.sf.json.JSONArray;

import java.util.HashMap;

//转化为json字符串
public class server {
    public User json(String name) throws Exception {
        UserDao a = new UserDao();
        User res = a.findInfoByname(name);
//        JSONArray jp = JSONArray.fromObject(map);
//        String json = jp.toString();
        return res;
    }
}
